﻿/****************************************************************
*   作者：qq918
*   创建时间：2017/12/20 17:36:59
*   描述说明：
*   
*   资源更新管理器
*****************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine.Networking;
using System.Net;
namespace Model
{
    public class BundleDownloadManager : Singleton<BundleDownloadManager>
    {
        public async void Awake(string uri)
        {
            string versionUri = $"{uri}/{PathHelper.GetCurrentPlatform()}/Version.json";
            Log.Info(versionUri);
            string versionConfigStr = await HttpHelper.GetToStringAsyn(versionUri);
            Log.Info(versionConfigStr);
            VersionConfig versionConfig = LitJson.JsonMapper.ToObject<VersionConfig>(versionConfigStr);

            Log.Info(versionConfig.ToJson());
        }

        public void Start()
        {

        }

        public void Update()
        {


        }
    }
}